import request from '@/utils/request'

export function selectPage(data){
    // return Promise.resolve({
    //     success : true , 
    //     data : [
    //         {workerId : 1 , workerName : "张三" , orgName : "组织1" , orgId : 1}
    //     ]
    // })
    return request({
        url : `/firstaid-platform/userCenter/contractWorker/selectPage`,
        method:"post",
        data
    })
}

export function insert(data){
    return request({
        url : `/firstaid-platform/userCenter/contractWorker/insert`,
        method:"post",
        data
    })
}

export function deleteById(data){
    return request({
        url : `/firstaid-platform/userCenter/contractWorker/deleteById`,
        method:"post",
        data
    })
}

export function update(data){
    return request({
        url : `/firstaid-platform/userCenter/contractWorker/updateById`,
        method:"post",
        data
    })
}